package com.baitiaojun.video.mapper;

import com.baitiaojun.api.domain.video.Video;
import org.apache.ibatis.annotations.Param;

import java.util.HashSet;
import java.util.List;
import java.util.Set;

public interface VideoMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Video record);

    int insertSelective(Video record);

    Video selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Video record);

    int updateByPrimaryKeyWithBLOBs(Video record);

    int updateByPrimaryKey(Video record);

    Integer isExistsVideo(Long videoId);

    List<Video> batchSelectVideos(@Param("videoIds") Set<Long> videoIds);

    List<Long> selectVideoIds();

    int batchDeleteVideo(Long videoId);

    Long selectUserIdByVideoId(Long videoId);
}